<div id="bentrai">
  <div id="main-content">
    <div class="center-center">
      <div class="center2">
        <ul>
          <li><a href="javascript:void(0);"><span>THỜI TRANG VÀ ÂM NHẠC</span></a></li>
        </ul>
      </div>
      <div class="oncenter2">
        <div class="khungspnb2">
          <?php
            $row_index  =   0;
            $i =1;
            $total_product  =   sizeof($data);
            foreach($data AS $row): 
            if($row_index == 0){
                echo '<div class="lstProduct">';
            }
            ?>
          <ul class="gamethoitrang2">
            <li><a href="/nhac/chi-tiet/<?php echo $row['Music']['id']; ?>-<?php echo $row['Music']['alias']; ?>.html"><img src="<?php echo $music_thumb_url_path . $row['Music']['thumbnail']; ?>" /></a></li>
            <li><a href="/nhac/chi-tiet/<?php echo $row['Music']['id']; ?>-<?php echo $row['Music']['alias']; ?>.html"><?php echo $row['Music']['title']; ?></a></li>
            <a href="#">
                <span><?php echo $row['Singer']['title']; ?></span>
            </a>
          </ul>
          <?php
            $row_index++;
            if(($row_index == 4 ) || $i == ($total_product)){
                echo '</div>';
               $row_index   =   0;
            }
            $i++;
            endforeach; ?>
          <?php echo $this->element('paging', array('paging'=>$this->Paginator));?>
        </div>
      </div>
    </div>
  </div>
</div>
